<div class="panel-heading"><span class="titulo_modulo">Nuevo</span></div>
<?php echo $this->Form->create('Solicitud', array('id' => 'reparacion', 'inputDefaults' => array('div' => false, 'label' => false))); ?>
<table class="form_registros">
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td>Fecha Desde</td>
        <td><?php echo $this->Form->input('fecha_d', array('type' => 'text', 'class' => 'fd')); ?></td>
    </tr>
    <tr>
        <td>Hora Desde</td>
        <td><?php echo $this->Form->input('hora_d', array('class' => 'hora')); ?></td>
    </tr>
    <tr>
        <td>Fecha Hasta</td>
        <td><?php echo $this->Form->input('fecha_h', array('type' => 'text', 'class' => 'fh')); ?></td>
    </tr>
    <tr>
        <td>Hora Hasta</td>
        <td><?php echo $this->Form->input('hora_h', array('class' => 'hora')); ?></td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
        <td colspan="2" class="centro">
            <?php echo $this->Form->button('Guardar', array('class' => 'btn_accion guardar')); ?>&nbsp;
            <?php echo $this->Html->link('Cancelar', array('controller' => 'Solicituds', 'action' => 'index/2'), array('class' => 'btn_accion cancelar')) ?>
        </td>
    </tr>
</table>
<?php
    echo $this->Form->end();

    $this->Validador->setFormulario('reparacion');
    $this->Validador->setRules('data.Solicitud.fecha_d', array('required' => array('value' => true)));
    $this->Validador->setRules('data.Solicitud.hora_d', array('required' => array('value' => true)));
    $this->Validador->setRules('data.Solicitud.fecha_h', array('required' => array('value' => true)));
    $this->Validador->setRules('data.Solicitud.hora_h', array('required' => array('value' => true)));
    //$this->Validador->setRules('data.Alquiler.estatus', array('required' => array('value' => true)));
    $this->Validador->printScript(true);
?>
<script type="text/javascript">
    $(function(){
        $("form#reparacion").tooltip({
            show: false,
            hide: false
        });
    });
</script>